<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data">
    {% for i in user %}
        姓名: <input type="text" name="username" value="{{ i.username }}"> <br>
        姓名: <input type="text" name="password" value="{{ i.password }}"> <br>
        姓名: <input type="text" name="img" value="{{ i.img }}"> <br>
        姓名: <input type="text" name="type" value="{{ i.type }}"> <br>
    {% endfor %}
    <button type="submit">修改</button>

</form>
</body>
</html>
